package com.averroes
{
	import flash.geom.Point;
	
	public class Geometry
	{
		/**
		 * Returns the slope of the line passing through two points.
		 * @param p1
		 * @param p2
		 * @return 
		 * 
		 */		
		public static function slope(p1:Point, p2:Point):Number
		{
			var dy:Number = p2.y - p1.y;
			var dx:Number = p2.x - p1.x;
			if (dx != 0)
				return dy/dx;
			else return 999;
		}
	}
}